import image from '@ohos.multimedia.image'

export interface IFilm {
  filmId: number;
  name: string;
  poster: string;
  actors: IActor[];
  director: string;
  category: string;
  synopsis: string;
  filmType: {
    name: string;
    value: number;
  };
  grade: string;
  nation: string;
  language: string;
  videoId: string;
  premiereAt: number;
  timeType: number;
  runtime: number;
  item: {
    name: string;
    type: string;
  },
  isPresale: boolean;
  isSale: boolean;
  posterUrl: any;
  photos: string[];
  photosUrl: image.PixelMap[];

  [P: string]: any;
}

export interface IActor {
  name: string;
  role: string;
  avatarAddress: string;
}

export interface IFilmResponse {
  films: IFilm[];
  total: number;
}

export interface IFilmDetail {
  filmId: IFilm['filmId'],
  k: '9257837'
}